package mblog.core.data;

import javax.persistence.*;
import java.util.Date;

/**
 * Project  : mblog
 * Author   : Wu Tian Qiang
 * Date     : 2016/6/14
 */
public class AccessLog {
    private long id;
    private String url;
    private String host;
    private String params;
    private String headers;
    private Date date;
    private String referer;

    public AccessLog() {
    }

    public AccessLog(String url, String host, String params, String headers, Date date, String referer) {
        this.url = url;
        this.host = host;
        this.params = params;
        this.headers = headers;
        this.date = date;
        this.referer = referer;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getHeaders() {
        return headers;
    }

    public void setHeaders(String headers) {
        this.headers = headers;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getReferer() {
        return referer;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

}
